package com.example.springboot09.danlimoshi;

import java.sql.SQLOutput;

/**
 * @ClassName Holder
 * @Description TODO
 * @Author tianqinglong
 * @Date 16:05 2022/7/25
 * @Version 1.0
 **/
public class Holder {
    public static void main(String[] args) {
        getInstance();
    }
    private Holder(){
        System.out.println("-----");
    }

    public static Holder getInstance(){
        return InnerClass.HOLDER;
    }
    public static class  InnerClass{

        private static final Holder HOLDER=new Holder();
    }
}
